
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: class Resource</title>
</head><body bgcolor="#f0f0f8">
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>A&nbsp;class&nbsp;for&nbsp;interacting&nbsp;with&nbsp;a&nbsp;resource.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl>

<dl><dt><a name="Resource-runpagespeed"><strong>runpagespeed</strong></a> = method(self, **kwargs)</dt><dd><tt>Runs&nbsp;Page&nbsp;Speed&nbsp;analysis&nbsp;on&nbsp;the&nbsp;page&nbsp;at&nbsp;the&nbsp;specified&nbsp;URL,&nbsp;and&nbsp;returns&nbsp;a&nbsp;Page&nbsp;Speed&nbsp;score,&nbsp;a&nbsp;list&nbsp;of&nbsp;suggestions&nbsp;to&nbsp;make&nbsp;that&nbsp;page&nbsp;faster,&nbsp;and&nbsp;other&nbsp;information.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;locale:&nbsp;string,&nbsp;The&nbsp;locale&nbsp;used&nbsp;to&nbsp;localize&nbsp;formatted&nbsp;results<br>
&nbsp;&nbsp;rule:&nbsp;string,&nbsp;A&nbsp;Page&nbsp;Speed&nbsp;rule&nbsp;to&nbsp;run;&nbsp;if&nbsp;none&nbsp;are&nbsp;given,&nbsp;all&nbsp;rules&nbsp;are&nbsp;run&nbsp;(repeated)<br>
&nbsp;&nbsp;strategy:&nbsp;string,&nbsp;The&nbsp;analysis&nbsp;strategy&nbsp;to&nbsp;use<br>
&nbsp;&nbsp;&nbsp;&nbsp;Allowed&nbsp;values<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;desktop&nbsp;-&nbsp;Fetch&nbsp;and&nbsp;analyze&nbsp;the&nbsp;URL&nbsp;for&nbsp;desktop&nbsp;browsers<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mobile&nbsp;-&nbsp;Fetch&nbsp;and&nbsp;analyze&nbsp;the&nbsp;URL&nbsp;for&nbsp;mobile&nbsp;devices<br>
&nbsp;&nbsp;url:&nbsp;string,&nbsp;The&nbsp;URL&nbsp;to&nbsp;fetch&nbsp;and&nbsp;analyze&nbsp;(required)</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table>
</body></html>